package com.huike.web.controller.report;


import com.huike.clues.service.ITbClueService;
import com.huike.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
public class IndexController {
    @Autowired
    private ITbClueService tbClueService;

    /**
     * 线索转化龙虎榜接口
     */
    @GetMapping("/salesStatistic")
    public AjaxResult salesStatistic(@RequestBody String beginCreateTime, @RequestBody String endCreateTime) {
        //指定时间内的线索
        tbClueService.selectByTimeAndType(beginCreateTime, endCreateTime);


        return AjaxResult.success();
    }
}
